package server;

import java.rmi.RMISecurityManager;
import java.security.PublicKey;
import javax.crypto.SecretKey;

public class Player {

    PublicKey p;
    SecretKey sharedKey;
    boolean finishCostruction = false;

    public Player(String name) {
        setName(name);
        map = null;
    }

    public Player(String name, Map map) {
        try {
            setMap(map);
            System.setSecurityManager(new RMISecurityManager());
            setName(name);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
    boolean lose = false;
    private Map map = null;
    String name;
    int score = 0;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Map getMap() {
        return map;
    }

    public void setMap(Map map) {
        this.map = map;
    }
}
